package com.example.syyao.myapp.Personal;

import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.LinearLayout;

import com.example.syyao.myapp.R;

import me.imid.swipebacklayout.lib.app.SwipeBackActivity;

public class app_about extends SwipeBackActivity {
    public LinearLayout btn_back;

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.about);
        overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_right);

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            Window window = getWindow();
            window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
            window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
            window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
            window.setStatusBarColor(Color.TRANSPARENT);
        }

        btn_back=(LinearLayout)findViewById(R.id.about_back);
        btn_back.setOnClickListener(new back_lis());
    }

    public void finish() {
        super.finish();
        overridePendingTransition(0,R.anim.slide_out_right);
    }

    public class back_lis implements  View.OnClickListener{

        @Override
        public void onClick(View v) {
            finish();
        }
    }

}
